Current Location: Home> Function Categories> intdiv

intdiv

Round the division result
Name:intdiv
Category:math
Programming Language:php
One-line Description:Perform integer division operation.

Definition and usage

intdiv() function is used to perform integer division operation.

Example

Perform several integer division operations:

 <?php
echo intdiv ( 8 , 4 ) ;
echo intdiv ( 5 , 2 ) ;
echo intdiv ( - 5 , - 2 ) ;
?>

Run the instance

grammar

 intdiv ( dividend , divisor ) ;
parameter describe
divide Required. Specifies the number to be divided.
divisor Required. Specifies the number used to divide the divisor.
Similar Functions
  • Sow the random number generator seeds srand

    srand

    Sowtherandomnumberge
  • Convert angle to radians deg2rad

    deg2rad

    Convertangletoradian
  • Convert decimal to octal decoct

    decoct

    Convertdecimaltoocta
  • Round floating point numbers round

    round

    Roundfloatingpointnu
  • Logarithm with base 10 log10

    log10

    Logarithmwithbase10
  • Convert binary to decimal bindec

    bindec

    Convertbinarytodecim
  • Perform floating point division under IEEE 754 semantics fdiv

    fdiv

    Performfloatingpoint
  • Find the minimum value min

    min

    Findtheminimumvalue
Popular Articles